package com.frame.database.operate;

/**
 * @Title: 系统
 * @Description:
 * @Copyright: Copyright (c) 2015
 * @Company:
 * @author 王海锋
 * @CreatedTime:2015-6-25 下午03:17:38
 * @version 1.0
 */

public enum DataBaseType {

    ORACLE("oracle"),
    SQLSERVER("sqlserver"),
    MYSQL("mysql");

    private String type;

    private DataBaseType(String type){
        this.type=type;
    }
    public static DataBaseType getDataBaseType(String type){
        DataBaseType[] enums=values();
        for(DataBaseType state:enums){
            if(state.getType().equalsIgnoreCase(type))
                return state;
        }
        return null;
    }
    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

}
